import datetime

movies = ['《环太平洋：雷霆再起》', '《头号玩家》', '《红海行动》']
numbers = ['9:30', '10:40', '12:00']
seats = ['10-01', '10-02', '10-03', '10-04']
today = datetime.date.today()
print(today)

def getShowText(prefix, list):
    text = ""
    for index, item in enumerate(list):
        text += str(index+1) + '、' + item + ' '

    return prefix + text

class Movie:
    def __init__(self, name, num, seat) -> None:
        self.name = name
        self.num = num
        self.seat = seat

    def showMovie(self):
        text = "电影：" + self.name + '\n' + "播出时间：" + str(today) + \
            ' ' + self.num + '\n' + "座位：" + self.seat + '\n'
        print(text)

print("欢迎使用自动售票机~~" + '\n')
id = int(input(getShowText('请选择正在上映的电影', movies)))
print("已选择电影：" + movies[id-1])
print('')
number = int(input(getShowText('请选择电影播放场次', numbers)))
print("电影场次：" + numbers[number-1])
print('')
seat = int(input(getShowText('请选择座位剩余座位', seats)))
print("电影场次：" + seats[seat-1])
print('')
print('正在出票。。。')
movie = Movie(movies[id-1], numbers[number-1], seats[seat-1]).showMovie()
print('出票完成，请别忘记取票')